package com.yingpai.fitness.entity.vip_card;

import com.google.gson.annotations.SerializedName;

/**
 * Created by ASUS on 2018/8/23.
 */

public class WeChatPayBean {

    /**
     * result : success
     * msg : 获取成功
     * map : {"id":"vipOrder-17","response":{"appid":"wxe7f5de124e3ad6da","noncestr":"77GO2ZbAPpBOnnut","package":"Sign=WXPay","partnerid":"1501922681","prepayid":"wx23141932439939a870d2efbf1534973665","sign":"4DFB11A222762523D15C559317F0853C","timestamp":1535005115},"totalPrice":1}
     */

    private String result;
    private String msg;
    private MapData map;

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public MapData getMap() {
        return map;
    }

    public void setMap(MapData map) {
        this.map = map;
    }

    public static class MapData {
        /**
         * id : vipOrder-17
         * response : {"appid":"wxe7f5de124e3ad6da","noncestr":"77GO2ZbAPpBOnnut","package":"Sign=WXPay","partnerid":"1501922681","prepayid":"wx23141932439939a870d2efbf1534973665","sign":"4DFB11A222762523D15C559317F0853C","timestamp":1535005115}
         * totalPrice : 1
         */

        private String id;
        private ResponseData response;
        private int totalPrice;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public ResponseData getResponse() {
            return response;
        }

        public void setResponse(ResponseData response) {
            this.response = response;
        }

        public int getTotalPrice() {
            return totalPrice;
        }

        public void setTotalPrice(int totalPrice) {
            this.totalPrice = totalPrice;
        }

        public static class ResponseData {
            /**
             * appid : wxe7f5de124e3ad6da
             * noncestr : 77GO2ZbAPpBOnnut
             * package : Sign=WXPay
             * partnerid : 1501922681
             * prepayid : wx23141932439939a870d2efbf1534973665
             * sign : 4DFB11A222762523D15C559317F0853C
             * timestamp : 1535005115
             */

            private String appid;
            private String noncestr;
            @SerializedName("package")
            private String packageX;
            private String partnerid;
            private String prepayid;
            private String sign;
            private int timestamp;

            public String getAppid() {
                return appid;
            }

            public void setAppid(String appid) {
                this.appid = appid;
            }

            public String getNoncestr() {
                return noncestr;
            }

            public void setNoncestr(String noncestr) {
                this.noncestr = noncestr;
            }

            public String getPackageX() {
                return packageX;
            }

            public void setPackageX(String packageX) {
                this.packageX = packageX;
            }

            public String getPartnerid() {
                return partnerid;
            }

            public void setPartnerid(String partnerid) {
                this.partnerid = partnerid;
            }

            public String getPrepayid() {
                return prepayid;
            }

            public void setPrepayid(String prepayid) {
                this.prepayid = prepayid;
            }

            public String getSign() {
                return sign;
            }

            public void setSign(String sign) {
                this.sign = sign;
            }

            public int getTimestamp() {
                return timestamp;
            }

            public void setTimestamp(int timestamp) {
                this.timestamp = timestamp;
            }
        }
    }
}
